package com.hqd.ch03.bean;

import lombok.Data;

@Data
public class AopBean implements IAopBean {
    private String id = "11";

    @Override
    public void test() {
        System.out.println("AopBean");
    }

    public String test1(String msg) {
        System.out.println(msg);
        return "sss";
    }

    public int test3(int a, int b) {
        return a + b;
    }

    public void test4() {
        System.out.println("异常测试");
        int i = 1 / 0;
    }

    public void test2(String msg, int a) {
        int i = 1;
        System.out.println(msg + i);
    }


    public void printId() {
        System.out.println(id);
    }

}
